const autoprefixer = require('autoprefixer');
const pxtorem = require('postcss-pxtorem');
module.exports = {
    css: {
        loaderOptions: {
            postcss: {
                plugins: [
                    autoprefixer({
                        overrideBrowserslist: ['Android >= 4.0', 'iOS >= 7']
                    }),
                    pxtorem({
                        rootValue: 37.5,
                        propList: ['*'],
                        unitPrecision: 3,
                        minPixelValue: 2
                    })
                ]
            }
        }
    },
    devServer: {
        open: true,
        host: 'localhost',
        hot: true,
        port: 3000,
        proxy: {
            '/api': {
                target: 'http://120.53.31.103:84/api/app/',
                changeOrigin: true,
                pathRewrite: {
                    "^/api2/": ''
                }
            }
        }
    },
}